package com.atguigu.common.to;

import lombok.Data;
import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuElasticSearchModleTO {

    private Long skuId;

    private Long spuId;

    //商品标题
    private String skuTitle;

    //商品价格
    private BigDecimal skuPrice;

    //商品图片
    private String skuImg;

    //销量
    private Long salaCount;

    //是否有库存
    private  Boolean hasStock;

    //商品热度
    private Long hotScore;

    //品牌ID
    private Long brandId;

    //分类ID
    private Long categoryId;

    //品牌名称
    private String brandName;

    //品牌图片
    private String brandImg;

    //分类名字
    private String catalogName;

    private List<Attrs> attrs;

    @Data
   public static class Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
